package com.aliyun.heiyu.powermaster.server.service;

import com.aliyun.heiyu.powermaster.proto.*;

public interface PowerDataService {
    public AddDeviceReply.Builder insert(AddDeviceRequest request);

    public UpdateDeviceReply.Builder update(UpdateDeviceRequest request);

    public DeleteDeviceReply.Builder delete(String deviceId);

    public ExportDevicesReply exportDeviceList(ExportDevicesRequest request);

    public ImportDevicesReply importDeviceList(ImportDevicesRequest request);

    public GetDevicesReply getDeviceList(GetDevicesRequest request);

    GetDeviceSnsReply getDeviceSns(String type);

    public GetDeviceDetailReply getDeviceDetail(GetDeviceDetailRequest request);

    DeviceDynamicReply dynamicDetail(DynamicDeviceRequest request);

    public GetCappingFreq1Reply.Builder getcapFreq(String sn, String startTime, String endTime, int interval);

    public GetPowerInfoReply getPower(String label, String startTime, String endTime, int interval);

    public GetStatisticsReply getStatistics();

    UpdateDeviceDynamicReply.Builder updateDynamic(UpdateDeviceDynamicRequest request);

    GetPowerInfoReply getPowerForAi(String label, String startTime, String endTime, int interval);

}
